function multiUpload(files=[]){
  let arr=[]
  files.forEach((item,index)=>{
    let nowtime=new Date().getTime();
    let ext=item.url.split(".").pop();
    let myitem=wx.cloud.uploadFile({
        cloudPath:"images/"+nowtime+"-"+index+"."+ext,
        filePath:item.url
    })
    arr.push(myitem)
})
return Promise.all(arr)
}

export {multiUpload}